From: Florian Müllner Date: Thu, 20 Feb 2020 15:40:04 +0000 (+0100) Subject: mpris: Disallow media section on login screen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~36 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d66f5ab3c6832b8a7eee367b131fad312806d059;p=gnome-shell.git mpris: Disallow media section on login screen The 'gdm' user is not going to run a media player, so there is no point in allowing the corresponding section on the login screen. All other sections are already disabled, so this is the only reason why we end up with the message list instead of only showing the calendar. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2241 --- diff --git a/js/ui/mpris.js b/js/ui/mpris.js index bc98c0402..9eabe4431 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -251,6 +251,10 @@ class MediaSection extends MessageList.MessageListSection { return !this.empty && Calendar.isToday(this._date); } + get allowed() { + return !Main.sessionMode.isGreeter; + } + _addPlayer(busName) { if (this._players.get(busName)) return;